package com.ddtech.business.web.query;

import com.ddtech.business.web.entity.Answer;
import com.ddtech.mybatisplus.annotaion.Eq;
import com.ddtech.mybatisplus.annotaion.Like;
import com.ddtech.mybatisplus.query.WebAbstractQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class AnswerQuery extends WebAbstractQuery<Answer> {
    @Eq
    @ApiModelProperty(value = "1:已审核 0：未审核")
    private Integer status;

    @Like
    @ApiModelProperty(value = "章节名称")
    private String chapterName;

    @Like
    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @Eq
    @ApiModelProperty(value = "用户名称")
    private String userName;

    @Eq
    @ApiModelProperty(value = "用户id")
    private String userId;

    @Like
    @ApiModelProperty(value = "问答内容")
    private String answerContent;

    @Eq
    @ApiModelProperty(value = "课程ID")
    private String courseId;

    @ApiModelProperty(value = "是否需要分页")
    private Integer isPage;

    //@Eq
    @ApiModelProperty(value = "是否查询自己提问，true是，false否")
    private boolean self;
}
